package com.zkthink.ceres.applet.ceresStore.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zkthink.ceres.applet.ceresStore.domain.entity.CeresStore;
import com.zkthink.ceres.applet.ceresStore.domain.vo.AppletStoreServerVo;
import com.zkthink.ceres.store.entity.Store;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;
import java.util.List;

/**

@Author cmz
@Date 2024-04-30 15:39
*/
public interface CeresStoreMapper extends BaseMapper<CeresStore> {
    List<AppletStoreServerVo> selectByServerId(@Param("serverId") Long id);

    List<AppletStoreServerVo> selectByServerIdAndPrice(@Param("serverId") Long serverId,@Param("costs") BigDecimal costs);

    List<AppletStoreServerVo> selectByProductIdAndPrice(@Param("productId") Long productId,@Param("costs") BigDecimal costs);
    
    Store selectByMid(Long userId);

    Store findById(Long storeId);
}